﻿Imports BusinessRule.DTO
Public Interface uLMSOilSealIBusiness
    ''' <summary>
    ''' Add by Yuxj20190621
    ''' 获取默认件号ProductId
    ''' </summary>
    ''' <param name="productname"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetDeaultProduct(ByVal productname As String) As DataTable
    ''' <summary>
    ''' 查询发动机件号，需排除施工单创建的信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetEngineProduct(ByVal para As Dictionary(Of String, String)) As DataTable
    ''' <summary>
    ''' 获取部件件号
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetCompProduct(ByVal para As Dictionary(Of String, String)) As DataTable
    ''' <summary>
    ''' 获取零件件号
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetPartProduct(ByVal para As Dictionary(Of String, String)) As DataTable
    ''' <summary>
    ''' 获取油封周期
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetOilSealCycle() As DataTable
    ''' <summary>
    ''' 获取油封周期
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetOilSealMethod() As DataTable
    ''' <summary>
    ''' 获取零部件及整机油封信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetOilSealProductInfo(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 获取发动机油封信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetOilSealMachineInfo(ByVal para As Dictionary(Of String, String)) As DataTable
    ''' <summary>
    ''' 查询部件油封信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetOilSealCompInfo(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 查询大零件油封信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetOilSealPartInfo(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 插入油封操作表
    ''' </summary>
    ''' <param name="entity"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function InsertEnginePartOilSeal(ByVal entity As BusinessRule.DTO.uMesOilSealDTO) As Boolean

    ''' <summary>
    ''' 插入油封人员工时表EnginePartOilSealWorker
    ''' </summary>
    ''' <param name="entity"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function InsertEnginePartOilSealWorker(ByVal entity As BusinessRule.DTO.uMesOilSealDTO) As Boolean
    ''' <summary>
    ''' 插入件号油封工时表engineparttime
    ''' </summary>
    ''' <param name="entity"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function InsertEnginePartTime(ByVal entity As BusinessRule.DTO.uMesOilSealDTO) As Boolean

    ''' <summary>
    ''' 判断是否做了整机油封和部件油封
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function boolIsOilSealed(ByVal para As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' Add by Yuxj201809
    ''' </summary>
    ''' <param name="dt"></param>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function FilterDatatable(ByVal dt As DataTable, ByVal para As Dictionary(Of String, String)) As DataTable


    ''' <summary>
    ''' Add by Yuxj20181012
    ''' 解除油封的方法
    ''' </summary>
    ''' <param name="OilSealId"></param>
    ''' <param name="ReleaseEmpId"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateEnginePartOilSeal(ByVal OilSealId As String, ByVal ReleaseEmpId As String) As Boolean

    ''' <summary>
    ''' Add by Yuxj20190103
    ''' 获取油封位置
    ''' </summary>
    ''' <param name="FactoryId"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetOilLocation(ByVal FactoryId As String) As DataTable

    ''' <summary>
    ''' Add by Yuxj20190103
    ''' 判断是否导入
    ''' </summary>
    ''' <param name="EngineNo"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function BoolOilImport(ByVal EngineNo As String) As Boolean

    ''' <summary>
    ''' 获取油封和人员信息 
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetOilSealInfo(ByVal para As Dictionary(Of String, String)) As DataTable
End Interface


